<%= form_for(@group, :html => {:class => 'form-horizontal'}) do |f| %>
  <% if @group.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@group.errors.count, "error") %> prohibited this group from being saved:</h2>

      <ul>
      <% @group.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="control-group">
    <%= f.label :name, class: "control-label"%>
    <div class="controls">
        <%= f.text_field :name%>
    </div>
  </div> 

  <div class="form-actions">
    <%= f.submit nil, class: "btn" %>
  </div>
<% end %>
